<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>管理员页面</title>
	<link rel="stylesheet" type="text/css" href="/stylesheets/guanli01.css">
	<link rel="stylesheet" type="text/css" href="/stylesheets/guanli02.css">
	<link rel="stylesheet" type="text/css" href="/stylesheets/guanli03.css">
	<link rel="stylesheet" type="text/css" href="/stylesheets/guanlimessage.css">
	<style type="text/css" media="screen">


</style>
</head>
<body>
	<div id="all">
		<div id="logo">
			<div id="img"><img src="/images/logo1.png" alt=""></div>
			<div id="ming"><img src="/images/1.png" alt=""></div>
		</div>
		<div id="zhuangtai"></div>
		<div id="count">
			<div id="left">
				<div id="liaotiankuang">
					<table>
						<% for(var i =0 ;i<data.length;i++){%>
						<%if(data[i].g_message==null){%>
						<%continue;%>
						<%}%>
						<%if(data[i].g_admin_name=='管理员'){%>
						<tr>
							<td style="color:red"><%=data[i].g_admin_name%>回复<%=data[i].g_user_name%>:</td>
							<td style="color:red"><%=data[i].g_message%></td>
						</tr>
						<%}else{%>
						<tr>
							<td>会员*<%=data[i].g_user_name%>:</td>
							<td><%=data[i].g_message%></td>
						</tr>
						<%} %>
						<%} %>
					</table>
				</div>
				<div id="submit">
						<form action="/admin/liaotian/handler" method="post" class="biao">
							<input type="text" name="message" class="text" placeholder="请输入需要发送的消息" >
							<label for="" class="biaoqian">选择会员:</label>						
								<% for(var i =0 ;i<data.length;i++){%>
								<%if(data[i].a_name==null){%>
								<%continue;%>
								<%}%>											
								<input class="huiyuan" type="radio" value="<%=data[i].a_name%>" name="username"><%=data[i].a_name%></input>
								<%} %>
							<input type="submit" value="发送" id="dl" >
							<a href="/admindelete/message/handler">清空消息</a>
						</form>
					</div>
				<div id="t"><img src="/images/gl.png" alt="">后台管理</div>
				<div id="biaoti"><ul>
					<li><a href="/shopp_updata">修改商品</a></li>
					<li ><a href="/delete_shopp">下架商品</a></li>
					<li ><a href="/add_shopp">添加商品</a></li>
					<li ><a href="/guanlihuiyuan">会员管理</a></li>
					<li ><a href="/guanlidingdan">订单管理</a></li>
					<li ><a href="/gonggao">公告管理</a></li>
					<li><a href="/" target="_blank">安全退出</a></li>
					<li><a href="/admin/message">用户消息</a></li>
				</ul>
			</div>
		</div>
	</div>	
</div>
</body>
<script>		 
        function myrefresh() {    
              window.location.href=window.location.href; 
              window.location.reload;              
        }  
        setTimeout('myrefresh()', 15000); //指定30秒刷新一次  
</script>
</html>